@extends('layouts.form.detail')
@section('box-css')
    <style>
        .table > tbody > tr > td, .table > thead > tr > th {
            text-align: center;
            vertical-align: middle;
        }
        table > tbody > tr:nth-child(odd){
            background: #f9f9f9;
        }
    </style>
@endsection
@section('box-title')
    编辑
@endsection

@section('box-tools')
    <div class="btn-group pull-right" style="margin-right: 5px">
        <a href="{{url('xqc/purchase/order',[$id])}}" class="btn btn-sm btn-primary"><i class="fa fa-eye"></i> 查看</a>
    </div>
    <div class="btn-group pull-right" style="margin-right: 5px">
        <a href="{{url('xqc/purchase/order')}}" class="btn btn-sm btn-default"><i class="fa fa-list"></i>&nbsp;列表</a>
    </div>
@endsection

@section('box-form')
    <form class="form-horizontal" id="order-edit-form">
        <div class="form-tools" style="margin-left: 20px;margin-top: 5px;">
            @include('purchase.order-edit.tools')
        </div>
        <div class="box-body">
            <div class="row">
                <div class="col-md-12">
                    @include('purchase.order-edit.basics')
                    @include('purchase.order-edit.contract')
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#tab-form-1" data-toggle="tab" aria-expanded="true">
                                    订单明细 <i class="fa fa-exclamation-circle text-red hide"></i>
                                </a>
                            </li>
                            <li class="">
                                <a href="#tab-form-2" data-toggle="tab" aria-expanded="false">
                                    收货记录 <i class="fa fa-exclamation-circle text-red hide"></i>
                                </a>
                            </li>
                        </ul>
                        <div class="tab-content fields-group">
                            <div class="tab-pane active" id="tab-form-1">
                                @include('purchase.order-edit.detail')
                            </div>
                            <div class="tab-pane" id="tab-form-2">
                                @include('purchase.order-edit.goods')
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.box-body -->
    </form>
@endsection
